package csu.web.credit_bank.service;

import csu.web.credit_bank.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import csu.web.credit_bank.pojo.vo.UserLogin;
import csu.web.credit_bank.pojo.vo.UserUpdate;
import csu.web.credit_bank.utils.Result;

/**
* @author Administrator
* @description 针对表【users(用户表，ID由ID池提供)】的数据库操作Service
* @createDate 2025-06-27 15:30:58
*/
public interface UsersService extends IService<User> {
    Result register(User user);
    Result login(UserLogin userLogin);
    Result updateUser(String id, UserUpdate userUpdate);
    Result getVerificationCode(String email);
    Result activateAuditor(String userId, String auditorPassword);
    Result signIn(String userId);
    Result getSignInfo(String userId);
    User getUserById(String id);
    Result getUserFrameById(String id);
    // 通过支付宝信息登录或自动注册
    Result loginOrRegisterByAlipay(String alipayEmail, String nickName, String avatarUrl);

    Result forgotPassword(String email);
    Result resetPassword(String token, String newPassword);
}
